package com.linyf.design.Decorator;

/**
 * @Author: linyf
 * @Description: TODO
 * @DateTime: 2023/4/26 11:09
 **/
public class Main {

    public static void main(String[] args) {

        Component component = new ConcreteComponent();

        component = new ConcreteDecorator2(component);

        component = new ConcreteDecorator1(component);

        component.operate();

    }
}
